<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>预定义常量</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="fileinfo.resources.html">资源类型</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="ref.fileinfo.html">Fileinfo 函数</a></div>
 <div class="up"><a href="book.fileinfo.html">Fileinfo</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="fileinfo.constants" class="appendix">
 <h1>预定义常量</h1>

 <p class="simpara">下列常量由此扩展定义，且仅在此扩展编译入 PHP 或在运行时动态载入时可用。</p>
 <dl>

  
   <dt id="constant.fileinfo-none">
    <strong><code>FILEINFO_NONE</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     No special handling.
    </span>
   </dd>

  
  
   <dt id="constant.fileinfo-symlink">
    <strong><code>FILEINFO_SYMLINK</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Follow symlinks.
    </span>
   </dd>

  
  
   <dt id="constant.fileinfo-mime-type">
    <strong><code>FILEINFO_MIME_TYPE</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Return the mime type.
    </span>
    <span class="simpara">
     Available since PHP 5.3.0.
    </span>
   </dd>

  
  
   <dt id="constant.fileinfo-mime-encoding">
    <strong><code>FILEINFO_MIME_ENCODING</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Return the mime encoding of the file.
    </span>
    <span class="simpara">
     Available since PHP 5.3.0.
    </span>
   </dd>

  
  
   <dt id="constant.fileinfo-mime">
    <strong><code>FILEINFO_MIME</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Return the mime type and mime encoding as defined by RFC 2045.
    </span>
   </dd>

  
  
   <dt id="constant.fileinfo-compress">
    <strong><code>FILEINFO_COMPRESS</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Decompress compressed files.
    </span>
    <span class="simpara">
     Disabled since PHP 5.3.0 due to thread safety issues.
    </span>
   </dd>

  
  
   <dt id="constant.fileinfo-devices">
    <strong><code>FILEINFO_DEVICES</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Look at the contents of blocks or character special devices.
    </span>
   </dd>

  
  
   <dt id="constant.fileinfo-continue">
    <strong><code>FILEINFO_CONTINUE</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Return all matches, not just the first.
    </span>
   </dd>

  
  
   <dt id="constant.fileinfo-preserve-atime">
    <strong><code>FILEINFO_PRESERVE_ATIME</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     If possible preserve the original access time.
    </span>
   </dd>

  
  
   <dt id="constant.fileinfo-raw">
    <strong><code>FILEINFO_RAW</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Don&#039;t translate unprintable characters to a <em>\ooo</em> octal
     representation.
    </span>
   </dd>

  
 </dl>

</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="fileinfo.resources.html">资源类型</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="ref.fileinfo.html">Fileinfo 函数</a></div>
 <div class="up"><a href="book.fileinfo.html">Fileinfo</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
